# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=py3-pyroute2.ndb
_pkgname=pyroute2.ndb
pkgver=0.6.9
pkgrel=0
pkgdesc="Python Netlink library: NDB module"
url="https://github.com/svinota/pyroute2"
arch="noarch"
license="GPL-2.0-or-later OR Apache-2.0"
makedepends="py3-setuptools"
depends="py3-pyroute2.core py3-pyroute2.nslink"
options="!check" # not supported for pr2modules namespace
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	# do not ship cli scripts for now
	rm -rf "$pkgdir/usr/bin"
}

sha512sums="
5da34e89e438b2c9008c8586ddb6d2b814f0e29a37c6ce12a5bddaa44392cb9d35bd8e2414f9d220682e01ebb72276d5a7abaf58ef7e08cb43d2df3ef49d3f69  pyroute2.ndb-0.6.9.tar.gz
"
